package com.alibaba.canal.samples;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author Webster
 * <p>
 * Description:canal启动类
 * </p>
 * @date 2021/3/16
 * @see com.alibaba.canal.samples
 */
@SpringBootApplication
public class CanalApplication {

	public static void main(String[] args) {

		ConfigurableApplicationContext context = SpringApplication.run(CanalApplication.class, args);
		// Grab the 'SimpleCanalClientExample' bean, call 'run()' to start the example.
		context.getBean(SimpleCanalClientExample.class).run();
	}
}
